<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>修改学生信息</title>
	<script type="text/javascript" src="../../static/js/jquery-3.4.1.min.js"></script>
	<script type="text/javascript" src="../../static/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="../../static/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="../../static/css/index.css">
	  <!-- 返回按钮 -->
  <script type="text/javascript">
      $(document).on('click','.goback',function(){
    window.history.back();
  })
  </script>

<!-- 表格动态增删 -->
<!-- <script type="text/javascript"></script> -->
<script type="text/javascript">// Example: obj = findObj("image1"); 

function findObj(theObj, theDoc) 
{ 
var p, i, foundObj; 
if(!theDoc) theDoc = document; 
if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) 
{ 
theDoc = parent.frames[theObj.substring(p+1)].document; 
theObj = theObj.substring(0,p); 
} 
if(!(foundObj = theDoc[theObj]) && theDoc.all) 
foundObj = theDoc.all[theObj]; 
for (i=0; !foundObj && i < theDoc.forms.length; i++) 
foundObj = theDoc.forms[i][theObj]; 
for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
foundObj = findObj(theObj,theDoc.layers[i].document); 
if(!foundObj && document.getElementById) 
foundObj = document.getElementById(theObj); 
return foundObj; 
} 


//添加一行学习简历 
function LearnAddSignRow(){ //读取最后一行的行号，存放在LearnTRLastIndex文本框中 


var LearnTRLastIndex = findObj("LearnTRLastIndex",document); 
var rowID = parseInt(LearnTRLastIndex.value); 

var signFrame = findObj("LearnInfoItem",document); 
//添加行 
var newTR = signFrame.insertRow(signFrame.rows.length); 
newTR.id = "LearnItem" + rowID; 

//添加列:序号 
var newNameTD=newTR.insertCell(0); 
//添加列内容 
newNameTD.innerHTML = "<input name='txtLearnStartDate" + rowID + "' id='txtLearnStartDate" + rowID + "' type='text' style='width:30px' />"; 

//添加列:毕业院校 
var newNameTD=newTR.insertCell(1); 
//添加列内容 
newNameTD.innerHTML = "<input name='txtName" + rowID + "' id='txtName" + rowID + "' type='text'  />"; 

//添加列:所学专业 
var newEmailTD=newTR.insertCell(2); 
//添加列内容 
newEmailTD.innerHTML = "<input name='txtEMail" + rowID + "' id='txtEmail" + rowID + "' type='text'  />"; 

//添加列:学制 
var newTelTD=newTR.insertCell(3); 
//添加列内容 
newTelTD.innerHTML = "<input name='txtTel" + rowID + "' id='txtTel" + rowID + "' type='text'  />"; 

//添加列:学位 
var newMobileTD=newTR.insertCell(4); 
//添加列内容 
newMobileTD.innerHTML = "<input name='txtMobile" + rowID + "' id='txtMobile" + rowID + "' type='text'  />"; 

//添加列:学习方式 
var newMobileTD=newTR.insertCell(5); 
//添加列内容 
newMobileTD.innerHTML = "<input name='txtMobile" + rowID + "' id='txtMobile" + rowID + "' type='text'  />"; 

// //添加列:文化程度 
// var newCompanyTD=newTR.insertCell(6); 
// //添加列内容 
// newCompanyTD.innerHTML = "<input name='txtCompany" + rowID + "' id='txtCompany" + rowID + "' type='text' class='inputStyle' />"; 


//添加列:删除按钮 
var newDeleteTD=newTR.insertCell(6); 
//添加列内容 
newDeleteTD.innerHTML = "<div align='center'><input class='btn btn-success' id='txtDel" + rowID + "' type='button' value='删除' onclick=\"LearnDeleteRow('LearnItem" + rowID + "')\" class='inputStyle' /></div>"; 

//将行号推进下一行 
LearnTRLastIndex.value = (rowID + 1).toString() ; 
} 
//删除指定行 
function LearnDeleteRow(rowid){ 
var signFrame = findObj("LearnInfoItem",document); 
var signItem = findObj(rowid,document); 

//获取将要删除的行的Index 
var rowIndex = signItem.rowIndex; 

//删除指定Index的行 
signFrame.deleteRow(rowIndex); 

} 

</script>

<!-- 表格动态增删 -->


      <style type="text/css">

        .table > tbody > tr > td {
     vertical-align: middle;
     text-align: center;
        }

        .table > thead > tr > th {
     vertical-align: middle;
     text-align: center;
        }
        input{
        	border: 0px;
        	text-align: center;
        }


    </style>
</head>
<body>
	<div class="container-fluid">
    <ol class="breadcrumb">
        <li class="active">学生信息管理
        </li>
        <li class="active">学生基本信息
        </li>
    </ol>
      <div class="container-fluid">
    <button class="btn bg-primary goback" style="margin:-7px 0 0 -15px">返回
    </button>
    <button class="btn bg-primary" onClick="document.location.reload()" style="float:right;margin-top: -7px;margin-right: -15px">刷新
    </button>
  	</div>
		<div class="row">
			<div class="col-lg-2">
					<form class="form-horizontal" action="/dadalele/student_info_alter/" method="post">
					  <div class="form-group">
					    <label for="inputEmail3" class="col-sm-1 control-label">姓名</label>
					    <div class="col-sm-3">
					      <input type="text" class="form-control" id="inputEmail3" placeholder="姓名">
					    </div>
					  </div>

					  <div class="form-group">
					    <label for="text" class="col-sm-1 control-label">学号</label>
					    <div class="col-sm-3">
					      <input type="s" class="form-control" id="inputPassword3" placeholder="学号" readonly="true">
					    </div>
					  </div>

					  <div class="form-group">
					    <label for="inputPassword3" class="col-sm-1 control-label">性别</label>
					    <div class="col-sm-10">
					      
					    	<label class="radio-inline">
							  <input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1"> 男
							</label>
							<label class="radio-inline">
							  <input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2"> 女
							</label>

					    </div>
					  </div>
					 
					   <div class="form-group">
					    <label for="inputPassword3" class="col-sm-1 control-label">出生日期</label>
					    <div class="col-sm-2">
					      <input type="date" class="form-control" id="inputPassword3" placeholder="Password">
					    </div>
					  </div>

					  <div class="form-group">
					    <label for="inputPassword3" class="col-sm-1 control-label">状态</label>
					    <div class="col-sm-10">
					      
					    	<label class="radio-inline">
							  <input type="radio" name="stu_statu" id="inlineRadio1" value="option1"> 在读
							</label>
							<label class="radio-inline">
							  <input type="radio" name="stu_statu" id="inlineRadio2" value="option2"> 停课
							</label>
					   	 </div>
					</div>

					<div class="form-group">
					    <label for="inputPassword3" class="col-sm-1 control-label">报名日期</label>
					    <div class="col-sm-2">
					      <input type="date" class="form-control" id="inputPassword3" placeholder="Password">
					    </div>
					 </div>

					<div class="form-group">
					    <label for="inputPassword3" class="col-sm-1 control-label">备注</label>
					    <div class="col-sm-4">
					      <textarea class="form-control" rows="4"></textarea>
					    </div>
					 </div>

					 
					  
			</div>
		</div>
	</div>
	<div class="container-fluid">
	<h3 >
	收入信息    
	<!-- <button class="btn btn-danger" onclick="LearnAddSignRow()">添加</button> -->
	<input class="btn btn-danger" style="text-align: right" type="button" name="LearnAdd" value="添加" onclick="LearnAddSignRow()" /> 
	</h3>
	</div>	
	<div class="container-fluid">
	<div class="table-responsive">
		<table class="table table-hover table-bordered" id="LearnInfoItem">
			<tr class="row">
			<thead>
				<tr>
					<th width="50px">序号</th>
					<th>金额（元）</th>
					<th>报名日期</th>
					<th>购买常规课数量</th>
					<th>购买寒暑假课数量</th>
					<th>优惠情况</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<tr id="tr1">
				<td class="tdStyle2" width="20px"><p>1</p></td>
				<td class="tdStyle2"><input type="text" value="4200" readonly="true" disabled="true"></td>
				<td class="tdStyle2"><input type="date" value="2014-01-02" disabled="true"></td>
				<td class="tdStyle2"><input type="text" value="40"></td>
				<td class="tdStyle2"><input type="text" value="5"></td>
				<td class="tdStyle2"><input type="text" value="赠送5节课"></td>
				<td class="tdStyle2"> 
					<input class="btn btn-danger" name='LearnTRLastIndex' type='hidden' id='LearnTRLastIndex' value="1" />
					<input class="btn btn-success" type="button" name="" value="修改">					 
						<div class="btn-group" style="display: none">
							<input class="btn btn-success" type="button" name="" value="保存" >
							<input class="btn btn-success" type="button" name="" value="取消">
						</div>
				</td>
				</tr>
				<tr>
				<td><p>2</p></td>
				<td><input type="text" value="4200"></td>
				<td><input type="date" value="2020/1/2"></td>
				<td><input type="text" value="40"></td>
				<td><input type="text" value="5"></td>
				<td><input type="text" value="赠送5节课"></td>
				<td><input type="text"></td>
				</tr>
				<tr>
				<td><p>3</p></td>
				<td><input type="text" value="4200"></td>
				<td><input type="date" value="2020/1/2"></td>
				<td><input type="text" value="40"></td>
				<td><input type="text" value="5"></td>
				<td><input type="text" value="赠送5节课"></td>
				<td><input type="text"></td>
				</tr>		
			</tbody>
		</table>
	</div>
</div>
</form>
					<div class="form-group">
					    <div class="col-sm-offset-5 col-sm-12">					    
					      	<button type="submit" class="btn btn-default">提交</button>
					      	<button type="reset" class="btn btn-danger">重置</button>
					    </div>
					</div>
					<br>
					<br>
					<br>
					<br>
					<br>
					<br>
</body>
</html>